﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace BookShopSys
{
    public partial class Index : System.Web.UI.Page
    {
        liberBLL bll = new liberBLL();

        protected void Page_Load(object sender, EventArgs e)
        {
            this.Repeater1.DataSource = bll.GetDataAll();
            this.Repeater1.DataBind();
        }

        protected void LinkButton1_Command(object sender, CommandEventArgs e)
        {
            if (e.CommandArgument.ToString() != "")
            {
                Response.Redirect("BookText.aspx?PID=" + e.CommandArgument.ToString());
            }
        }

        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {

        }
    }
}